@echo off

if "%1"=="" goto syntax
if not exist ..\data\%1.gdx goto error


echo	$setglobal dataset %1	>mrttest.inc

call gams mrttest
goto end

:error
echo.
echo.
echo	Error: Cannot find ..\data\%1.gdx
echo.
echo.
goto end

:syntax
echo.
echo	Usage:
echo.
echo	runall dataset 
echo.
echo	Runs the four formulations of the GTAPinGAMS model on a dataset 
echo	located in ..data\dataset.gdx
echo.
echo.

:end
